<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../../Templates/SubFolderTemplate.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="head-title">
        <title>View Product Balance | Merlion's ERP System</title>
    </ui:define>

    <ui:define name="content">
        <p:panel id="panel" header="View Product Balance">
            <h:form prependId="false">
                <p:dataTable var="product" value="#{viewProductBalanceManagerBean.product}" 
                             dynamic="true" paginator="true" rows="5" emptyMessage="No Product Balance Record." onRowSelectUpdate="display"> 
                   
                    <p:column sortBy="#{product.productType}" filterBy="#{product.productType}"> 
                        <f:facet name="header"> 
                            <h:outputText value="Product Type" /> 
                        </f:facet> 
                        <h:outputText value="#{product.productType}" /> 
                    </p:column> 

                    <p:column sortBy="#{product.balance}" filterBy="#{product.balance}"> 
                        <f:facet name="header"> 
                            <h:outputText value="Balance" /> 
                        </f:facet> 
                        <h:outputText value="#{product.balance}" /> 
                    </p:column> 

                    <f:facet name="footer"/>                    

                </p:dataTable>
            </h:form>
        </p:panel>
    </ui:define>

</ui:composition>
